<?php

class IndexController extends Controller {

    public function __construct() {
        $this->loadController("login") ;
        $this->loadView("index") ;
    }

    public function index() {
        $body = "" ;

        $body .= $this->controller['login']->_loginBox() ;

        $body .= $this->view['index']->addDiv("", array("class" =>"clr")) ;

        $body = $this->view['index']->addDiv($body, array("id" => "container")) ;

        echo $this->view['index']->getXHtml($body) ;
        //echo $this->view['index']->index() ;
    }
}
